package cn.fengkuok.jantis.bug.domian.model;

import java.sql.Blob;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.fengkuok.core.domain.model.AbstractEntity;

//@Entity
//@Table(name = "T_BUG_FILE")
public class BugFile extends AbstractEntity {

	private static final long serialVersionUID = 720971920195037523L;

	@ManyToOne(cascade = { CascadeType.REMOVE })
	private Bug bug;
	
	private String title;
	
	private String description;
	
	private String diskfile;
	
	private String filename;
	
	private String folder;
	
	private Long filesize;
	
	@Column(name="FILE_TYPE")
	private String fileType;
	
	private Date dateAdded;
	
	@Lob
	private Blob content;

	public Bug getBug() {
		return bug;
	}

	public void setBug(Bug bug) {
		this.bug = bug;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDiskfile() {
		return diskfile;
	}

	public void setDiskfile(String diskfile) {
		this.diskfile = diskfile;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getFolder() {
		return folder;
	}

	public void setFolder(String folder) {
		this.folder = folder;
	}

	public Long getFilesize() {
		return filesize;
	}

	public void setFilesize(Long filesize) {
		this.filesize = filesize;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public Date getDateAdded() {
		return dateAdded;
	}

	public void setDateAdded(Date dateAdded) {
		this.dateAdded = dateAdded;
	}

	public Blob getContent() {
		return content;
	}

	public void setContent(Blob content) {
		this.content = content;
	}

}
